package cn.edu.sdjzu.xg.bysj.domain;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Collection;

/**
 * 志愿
 * 包含至多留个志愿条目信息
 * 和
 * 自我介绍、年份、用户（学生）
 */
@Setter
@Getter
public class ApplicationForSupervisor implements Comparable<ApplicationForSupervisor>, Serializable {
    //志愿集合
    private Collection<ApplicationForSupervisorEntry> applicationForSupervisorEntries;

    private int id;

    private String selfIntroduction;

    private Student student;

    private int year;
    @Override
    public int compareTo(ApplicationForSupervisor o) {
        return this.id-o.id;
    }

    @Override
    public String toString() {
        return ""+id+" " + selfIntroduction + " " + student.getId() + " "+  year;
    }
}
